]> dgit.raspbian.org Git - gnome-shell.git/commit
texture-cache: Replace ClutterTexture by ClutterImage
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 24 Jan 2019 15:42:14 +0000 (13:42 -0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 24 Jan 2019 18:23:58 +0000 (16:23 -0200)
commitdeec0bf25506f5ddae10bedb5b9cbfafc4730db2
tree21f7418f9307c329768ba043c5b9034aa8c50f6a
parent8bb9eb0fc9d45380823896fd5ae8f9340cdc31ea
texture-cache: Replace ClutterTexture by ClutterImage

ClutterTexture is a deprecated class that is simultaneously
an actor, and the content of the actor. Clutter's new model
is to separate painting (via ClutterContent) from actors.

Currently, StTextureCache relies on ClutterTexture to store
the loaded textures. This not only does not match the latest
practices of Clutter, but also generates various compile-time
warnings.

Port StTextureCache to store ClutterImages instead of storing
ClutterTextures. ClutterImage exposes the internal CoglTexture,
so no helpers are needed to match the current StTextureCache
API. Aspect ratio was dropped, but from my testing, it doesn't
change anything.
src/st/st-icon.c
src/st/st-texture-cache.c